<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>
<html>
<head>

<style type="text/css">
.errors {
	background-color:#FFCCCC;
	border:1px solid #CC0000;
	width:400px;
	margin-bottom:8px;
}
.errors li{ 
	list-style: none; 
}
</style>




<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<s:if test="hasActionErrors()">
   <div class="errors">
      <s:actionerror/>
   </div>
</s:if>
	<s:form action="login" method="POST">
        <tr>
            <td colspan="2">
                Login
            </td>
        </tr>
      <!--    <s:actionerror /> <s:fielderror /> -->
        <td>
        <s:textfield text="1" name="user.userID" label="username" key="userID"/>
        <!--  <s:fielderror /> -->
        </td>
        </tr>
        <tr>
        <td>
        <s:textfield text ="cha" name="user.password" label="password" key="password" />
       <!--  <s:fielderror /> -->
       </td>
        </tr>
         <tr>
        <td>
        <s:submit value="Submit" align="center"/>
        
        <a href="registration.action"  class="linkform">You don't have an account yet? Register here</a>
      
        </td>
        </tr>
	</s:form>
	
	
</body>
</html>